<%@ include file="../common/IncludeTop.jsp"%>
<form action="modifyForm" method="post">
    <h3>Account Information</h3>

    <table>
        <tr>
            <td>First name:</td>
            <td><input type="text" value="${sessionScope.loginUser.firstName}" disabled /></td>
        </tr>
        <tr>
            <td>Last name:</td>
            <td><input type="text" value="${sessionScope.loginUser.lastName}" disabled /></td>
        </tr>
        <tr>
            <td>Email:</td>
            <td><input type="text" value="${sessionScope.loginUser.email}" disabled /></td>
        </tr>
        <tr>
            <td>Phone:</td>
            <td><input type="text" value="${sessionScope.loginUser.phone}"  disabled/></td>
        </tr>
        <tr>
            <td>Address 1:</td>
            <td><input type="text" value="${sessionScope.loginUser.address1}"  disabled/></td>
        </tr>
        <tr>
            <td>Address 2:</td>
            <td><input type="text" value="${sessionScope.loginUser.address2}"disabled  /></td>
        </tr>
        <tr>
            <td>City:</td>
            <td><input type="text" value="${sessionScope.loginUser.city}"  disabled/></td>
        </tr>
        <tr>
            <td>State:</td>
            <td><input type="text" value="${sessionScope.loginUser.state}" disabled /></td>
        </tr>
        <tr>
            <td>Zip:</td>
            <td><input type="text" value="${sessionScope.loginUser.zip}"  disabled/></td>
        </tr>
        <tr>
            <td>Country:</td>
            <td><input type="text" value="${sessionScope.loginUser.country}" disabled /></td>
        </tr>
    </table>

    <h3>Profile Information</h3>

    <table>
        <tr>
            <td>Language Preference:</td>
            <td>${sessionScope.loginUser.languagePreference}</td>

            </td>
        </tr>
        <tr>
            <td>Favourite Category:</td>
            <td>${sessionScope.loginUser.favouriteCategoryId}</td>
            <td>

            </td>
        </tr>
        <tr>
            <td>Enable MyList</td>
            <td>${sessionScope.loginUser.listOption}"</td>
            <%--<td>
                <input type="checkbox" name="${sessionScope.loginUser.listOption}" value="${sessionScope.loginUser.listOption}" id="${sessionScope.loginUser.listOption}"/>
                &lt;%&ndash;<checkbox name="${sessionScope.loginUser.listOption}">${sessionScope.loginUser.listOption}</checkbox>&ndash;%&gt;
            </td>--%>
        </tr>
        <tr>
            <td>Enable MyBanner</td>
            <td>${sessionScope.loginUser.bannerOption}"</td>
            <%--<td>
                <input type="checkbox" name="${sessionScope.loginUser.bannerOption}" value="${sessionScope.loginUser.bannerOption}" id="${sessionScope.loginUser.bannerOption}"/>
            </td>--%>
        </tr>

        <td>
            <%--<c:if test="${sessionScope.loginUser==null}">
                <input type="submit" value="REGISTER">
            </c:if>--%>
            <c:if test="${sessionScope.loginUser!=null}">
                <input type="submit" value="MODIFY YOUR ACCOUNT">
            </c:if>
        </td>
        <tr>
            <td>
                <%--<c:if test="${sessionScope.loginUser==null}">
                    <input type="submit" value="REGISTER">
                </c:if>--%>
                <c:if test="${sessionScope.loginUser!=null}">
                    <a href="viewOrder">My Order</a>
                </c:if>
            </td>
        </tr>
    </table>
</form>
<%@ include file="../common/IncludeBottom.jsp"%>
